Optimal. Leaf size=102 \[ -\frac {b g}{e (d+e x)}-\frac {g (a+b+b \log (c (d+e x)))}{e (d+e x)}-\frac {b (f+g \log (c (d+e x)))}{e (d+e x)}-\frac {(a+b \log (c (d+e x))) (f+g \log (c (d+e x)))}{e (d+e x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2416, 12, 2341,
2413} \begin {gather*} -\frac {(a+b \log (c (d+e x))) (g \log (c (d+e x))+f)}{e (d+e x)}-\frac {g (a+b \log (c (d+e x))+b)}{e (d+e x)}-\frac {b (g \log (c (d+e x))+f)}{e (d+e x)}-\frac {b g}{e (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2341
Rule 2413
Rule 2416
Rubi steps
\begin {align*} \int \frac {(a+b \log (c (d+e x))) (f+g \log (c (d+e x)))}{(d+e x)^2} \, dx &=\frac {\text {Subst}\left (\int \frac {c^2 (a+b \log (x)) (f+g \log (x))}{x^2} \, dx,x,c (d+e x)\right )}{c e}\\ &=\frac {c \text {Subst}\left (\int \frac {(a+b \log (x)) (f+g \log (x))}{x^2} \, dx,x,c (d+e x)\right )}{e}\\ &=-\frac {b (f+g \log (c (d+e x)))}{e (d+e x)}-\frac {(a+b \log (c (d+e x))) (f+g \log (c (d+e x)))}{e (d+e x)}-\frac {(c g) \text {Subst}\left (\int \frac {-a \left (1+\frac {b}{a}\right )-b \log (x)}{x^2} \, dx,x,c (d+e x)\right )}{e}\\ &=-\frac {b g}{e (d+e x)}-\frac {g (a+b+b \log (c (d+e x)))}{e (d+e x)}-\frac {b (f+g \log (c (d+e x)))}{e (d+e x)}-\frac {(a+b \log (c (d+e x))) (f+g \log (c (d+e x)))}{e (d+e x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 58, normalized size = 0.57 \begin {gather*} -\frac {a (f+g)+b (f+2 g)+(a g+b (f+2 g)) \log (c (d+e x))+b g \log ^2(c (d+e x))}{e (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.37, size = 169, normalized size = 1.66
method | result | size |
norman | \(\frac {-\frac {a f +a g +b f +2 b g}{e}-\frac {\left (a g +b f +2 b g \right ) \ln \left (c \left (e x +d \right )\right )}{e}-\frac {b g \ln \left (c \left (e x +d \right )\right )^{2}}{e}}{e x +d}\) | \(70\) |
risch | \(-\frac {b g \ln \left (c \left (e x +d \right )\right )^{2}}{e \left (e x +d \right )}-\frac {\left (a g +b f +2 b g \right ) \ln \left (c \left (e x +d \right )\right )}{e \left (e x +d \right )}-\frac {a f}{e \left (e x +d \right )}-\frac {a g}{e \left (e x +d \right )}-\frac {b f}{e \left (e x +d \right )}-\frac {2 b g}{e \left (e x +d \right )}\) | \(113\) |
derivativedivides | \(\frac {-\frac {c^{2} a f}{c e x +c d}+c^{2} a g \left (-\frac {\ln \left (c e x +c d \right )}{c e x +c d}-\frac {1}{c e x +c d}\right )+c^{2} b f \left (-\frac {\ln \left (c e x +c d \right )}{c e x +c d}-\frac {1}{c e x +c d}\right )+c^{2} b g \left (-\frac {\ln \left (c e x +c d \right )^{2}}{c e x +c d}-\frac {2 \ln \left (c e x +c d \right )}{c e x +c d}-\frac {2}{c e x +c d}\right )}{c e}\) | \(169\) |
default | \(\frac {-\frac {c^{2} a f}{c e x +c d}+c^{2} a g \left (-\frac {\ln \left (c e x +c d \right )}{c e x +c d}-\frac {1}{c e x +c d}\right )+c^{2} b f \left (-\frac {\ln \left (c e x +c d \right )}{c e x +c d}-\frac {1}{c e x +c d}\right )+c^{2} b g \left (-\frac {\ln \left (c e x +c d \right )^{2}}{c e x +c d}-\frac {2 \ln \left (c e x +c d \right )}{c e x +c d}-\frac {2}{c e x +c d}\right )}{c e}\) | \(169\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 161, normalized size = 1.58 \begin {gather*} -b f {\left (\frac {c e}{c x e^{3} + c d e^{2}} + \frac {\log \left (c x e + c d\right )}{x e^{2} + d e}\right )} - a g {\left (\frac {c e}{c x e^{3} + c d e^{2}} + \frac {\log \left (c x e + c d\right )}{x e^{2} + d e}\right )} - \frac {{\left (c^{2} \log \left (c x e + c d\right )^{2} + 2 \, c^{2} \log \left (c x e + c d\right ) + 2 \, c^{2}\right )} b g e^{\left (-1\right )}}{{\left (c x e + c d\right )} c} - \frac {a f}{x e^{2} + d e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 63, normalized size = 0.62 \begin {gather*} -\frac {b g \log \left (c x e + c d\right )^{2} + {\left (a + b\right )} f + {\left (a + 2 \, b\right )} g + {\left (b f + {\left (a + 2 \, b\right )} g\right )} \log \left (c x e + c d\right )}{x e^{2} + d e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.16, size = 75, normalized size = 0.74 \begin {gather*} - \frac {b g \log {\left (c \left (d + e x\right ) \right )}^{2}}{d e + e^{2} x} + \frac {\left (- a g - b f - 2 b g\right ) \log {\left (c \left (d + e x\right ) \right )}}{d e + e^{2} x} - \frac {a f + a g + b f + 2 b g}{d e + e^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.99, size = 104, normalized size = 1.02 \begin {gather*} -\frac {{\left (b c^{2} g \log \left ({\left (x e + d\right )} c\right )^{2} + b c^{2} f \log \left ({\left (x e + d\right )} c\right ) + a c^{2} g \log \left ({\left (x e + d\right )} c\right ) + 2 \, b c^{2} g \log \left ({\left (x e + d\right )} c\right ) + a c^{2} f + b c^{2} f + a c^{2} g + 2 \, b c^{2} g\right )} e^{\left (-1\right )}}{{\left (x e + d\right )} c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.50, size = 92, normalized size = 0.90 \begin {gather*} -\frac {d\,\left (b\,g\,{\ln \left (c\,d+c\,e\,x\right )}^2+a\,g\,\ln \left (c\,d+c\,e\,x\right )+b\,f\,\ln \left (c\,d+c\,e\,x\right )+2\,b\,g\,\ln \left (c\,d+c\,e\,x\right )\right )-e\,\left (a\,f\,x+a\,g\,x+b\,f\,x+2\,b\,g\,x\right )}{d^2\,e+x\,d\,e^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________